import request from '@/utils/request'

// 获取列表
export const restList = (params) => {
    return request.get('/rest/list-page', { params })
}

// 申请休息
export const applyRest = (params) => {
    return request.post('/rest', params)
}

// 删除休息
export const deleteRest = (params) => {
    return request.delete('/rest', { params })
}